curl --request PATCH \
--url https://app.masivo.ai/api/storefront/v1/customers/{id}/consent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"consent": {
"consent_string": "COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA",
"version": "2.0",
"consent_timestamp": "2023-11-07T05:31:56Z",
"customer_id": "<string>",
"purposes": {
"behavioral_campaigns": true,
"coupon_campaigns": true,
"punchcard_campaigns": true,
"email_marketing": true,
"push_notifications": true,
"link_tracking": true
},
"vendors": {
"vendor_123": true,
"vendor_456": false
}
}
}
'{
"data": {
"consent": {
"consent_string": "COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA",
"version": "2.0",
"consent_timestamp": "2023-11-07T05:31:56Z",
"customer_id": "<string>",
"purposes": {
"behavioral_campaigns": true,
"coupon_campaigns": true,
"punchcard_campaigns": true,
"email_marketing": true,
"push_notifications": true,
"link_tracking": true
},
"vendors": {
"vendor_123": true,
"vendor_456": false
}
}
}
}Update customer consent preferences according to IAB TCF (Transparency and Consent Framework) standards.
curl --request PATCH \
--url https://app.masivo.ai/api/storefront/v1/customers/{id}/consent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"consent": {
"consent_string": "COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA",
"version": "2.0",
"consent_timestamp": "2023-11-07T05:31:56Z",
"customer_id": "<string>",
"purposes": {
"behavioral_campaigns": true,
"coupon_campaigns": true,
"punchcard_campaigns": true,
"email_marketing": true,
"push_notifications": true,
"link_tracking": true
},
"vendors": {
"vendor_123": true,
"vendor_456": false
}
}
}
'{
"data": {
"consent": {
"consent_string": "COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA",
"version": "2.0",
"consent_timestamp": "2023-11-07T05:31:56Z",
"customer_id": "<string>",
"purposes": {
"behavioral_campaigns": true,
"coupon_campaigns": true,
"punchcard_campaigns": true,
"email_marketing": true,
"push_notifications": true,
"link_tracking": true
},
"vendors": {
"vendor_123": true,
"vendor_456": false
}
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The customer unique identifier in your system
Show child attributes
IAB TCF consent string in base64url format, starting with 'CO', minimum 20 characters, maximum 500 characters
20 - 500"COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA"
IAB TCF version
"2.0"
The timestamp when consent was given
The customer unique identifier
Show child attributes
Consent for behavioral campaigns
Consent for coupon campaigns
Consent for punchcard campaigns
Consent for email marketing
Consent for push notifications
Consent for link tracking
Customer consent updated
Show child attributes
Show child attributes
IAB TCF consent string in base64url format, starting with 'CO', minimum 20 characters, maximum 500 characters
20 - 500"COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA"
IAB TCF version
"2.0"
The timestamp when consent was given
The customer unique identifier
Show child attributes
Consent for behavioral campaigns
Consent for coupon campaigns
Consent for punchcard campaigns
Consent for email marketing
Consent for push notifications
Consent for link tracking